﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ZBJF.Warranty.UdeskApi
{
    public class MessageEventModel
    {
        /// <summary>
        /// 事件类型
        /// Customer_create ：客户创建
        /// Customer_update ：客户修改
        /// </summary>
        public string action { get; set; }
        public Message message { get; set; }
    }

    public class Message
    {
        //==================新增客户start
        public long id { get; set; }
        /// <summary>
        /// 姓名
        /// </summary>
        public string nick_name { get; set; }
        /// <summary>
        /// 用户备注
        /// </summary>
        public string description { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string email { get; set; }
        /// <summary>
        /// 电话号码
        /// </summary>
        public List<Cellphone> cellphones { get; set; }

        /// <summary>
        /// 客户来源中文名称
        /// </summary>
        public string source_channel { get; set; }

        /// <summary>
        /// 负责客服id
        /// </summary>
        public long? owner_id { get; set; }
        /// <summary>
        /// 微信信息
        /// </summary>
        public List<WeiXinInfo> weixins { get; set; }

        //==================新增客户end

        //==================修改客户start
        public Changes changes { get; set; }
        //==================修改客户end

    }

    public class Cellphone
    {
        public string content { get; set; }

    }

    public class WeiXinInfo
    {
        public string openid { get; set; }
    }
    public class Changes
    {
        public string[] nick_name { get; set; }
        public long?[] owner_id { get; set; }
        public string[] description { get; set; }
        public string[] email { get; set; }
        public Phone cellphones { get; set; }
    }

    public class Phone
    {
        public string[] content { get; set; }
    }
}